package com.goods.business.service;

import com.goods.common.error.BusinessException;
import com.goods.common.vo.business.InStockDetailVO;
import com.goods.common.vo.business.InStockVO;
import com.goods.common.vo.system.PageVO;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Description: TODO
 * @Author: Mr.Cao
 * @DateTime: 2021/11/10 0:42
 * BMW F750GS
 **/
public interface InStockService {
    /**
     * 分页查询入库记录
     * */
    PageVO findInStockList(Map queryMap);
    /**
     * 新建入库记录
     * */
    void addIntoStock(InStockVO inStockVO, HttpServletRequest request);
    /**
     * 查看入库记录明细
     * */
    InStockDetailVO detail(long id, Integer pageNum);
    /**
     * 审核通过
     * */
    void publish(long id) throws BusinessException;
    /**
     * 审核不通过, 删除
     * */
    void delete(long id);
    /**
     * 移除进入回收站
     * */
    void remove(long id);
    /**
     * 还原: 恢复到正常
     * */
    void back(long id);
}
